package control;

import java.awt.FileDialog;

import model.Sheet;
import model.XLPrintStream;
import view.Gui;
import view.StatusArea;

class SaveMenuItem extends FileMenuItem {
	private Sheet sheet;
    public SaveMenuItem(Gui gui, StatusArea statusArea, Sheet sheet) {
        super(gui, statusArea, "Save");
        action = FileDialog.SAVE;
        this.sheet = sheet;
    }

	public void action(String name) {
        try {
            XLPrintStream printStream = new XLPrintStream(name);
            
            // TODO
        } catch (Exception e) {
            statusArea.setText(e.getMessage());
        }
    }
}